import {_decorator, Component, director} from 'cc';

const {ccclass} = _decorator;

@ccclass('StartController')
export class StartController extends Component {

    acc: string = ''
    pwd: string = ''

    start() {

    }

    loginButtonClick() {
        console.log('loginButtonClick', this.acc, this.pwd);
        director.loadScene('game')
    }

    editChange(v: string, _: any, key: string) {
        switch (key) {
            case 'acc':
                this.acc = v
                break
            case 'pwd':
                this.pwd = v
                break
            default:
                break
        }
    }

}
